from django.contrib import admin

# 导入模型类模块
from .models import NewsCategory, NewsInfo


@admin.register(NewsCategory)
class NewsCategoryAdmin(admin.ModelAdmin):
    list_display = ['id', 'cag_name']


@admin.register(NewsInfo)
class NewsInfoAdmin(admin.ModelAdmin):
    list_display = ['id', 'news_title', 'news_content', 'news_category_id']
